<div class="cadreparente">
<table id="box-table-avv" summary="Employee Pay Sheet">
<tr>
				<?php
$compt = 0;
				$dossierId = getParameter("dossierId");
	if ($dossierId){ 
				$rs=ew_LoadRecordset("SELECT
											cabinet_dossier.id as id,
											cabinet_dossier.numeroDeDossier as num,
											cabinet_dossier.nom as nom,
											cabinet_dossier.prenom as prenom,
											cabinet_dossier_lien_parente.lien_parent as lien
									FROM
											cabinet_dossier_lien_parente
									INNER JOIN 
											cabinet_dossier ON cabinet_dossier_lien_parente.dossierId = cabinet_dossier.id
									WHERE
											cabinet_dossier_lien_parente.dossierIdLien   = $dossierId");

				while (!$rs->EOF)
				{  
				 
					
					?>
					
					<?php $compt++;     ?>
						 <td> <a href="butterflyportal/index.php?table=cabinet_soins_portlet&filter=1&dossierId=<?=$rs->fields["id"]?>" target="_blank">   <input type="text" name="numeroDeDossier" value="<?=$rs->fields["nom"]?>; <?=$rs->fields["prenom"]?>;<?=$rs->fields["lien"]?>" readonly  > </a> </td>
						<?php
						
						$var = ($compt%3 == 0);
						if($compt%3 == 0) echo "</tr>";      ?>
					
					
					<?php 
					$rs->MoveNext();
				}

				$rs=ew_LoadRecordset("SELECT
											cabinet_dossier.id as id,
											cabinet_dossier.numeroDeDossier as num,
											cabinet_dossier.nom as nom,
											cabinet_dossier.prenom as prenom,
											cabinet_dossier_lien_parente.lien_parent as lien
									FROM
											cabinet_dossier
									INNER JOIN 
											cabinet_dossier_lien_parente ON cabinet_dossier.id = cabinet_dossier_lien_parente.dossierIdLien
									WHERE
											cabinet_dossier_lien_parente.dossierId   = $dossierId");

				while (!$rs->EOF)
				{
					
					?>

					<?php $compt++;     ?>
						 <td> <a href="butterflyportal/index.php?table=cabinet_soins_portlet&filter=1&dossierId=<?=$rs->fields["id"]?>" target="_blank">   <input type="text" name="numeroDeDossier" value="<?=$rs->fields["nom"]?>; <?=$rs->fields["prenom"]?>;<?=$rs->fields["lien"]?>" readonly  > </a> </td>
						<?php
						
						if(  ($compt%3) == 0 ) echo "</tr>";      ?>
					
					
					
					
					<?php 
					$rs->MoveNext();
				}}?>


</table>
</div>
